//
//  searchCountyList.m
//  ImGuider
//
//  Created by 王鹏宇 on 2017/8/1.
//  Copyright © 2017年 imguider. All rights reserved.
//

#import "searchCountyList.h"

@implementation searchCountyList


+ (NSDictionary *)modelContainerPropertyGenericClass {
    
    return @{@"cities" : [City class]};
}



- (NSString *)smartName {
    
        
        NSString *name = @"";
        if ([[AppManager sharedManager].language hasPrefix:@"zh-Hans"]) {
            
            name = _name;
        } else if ([[AppManager sharedManager].language hasPrefix:@"zh-Hant"]) {
            
            name = _fname;
        }else {
            
            name = _ename;
        }
        
        if (name.length == 0) {
            name = _name;
        }
        return name;

}
@end
